package com.wocharging.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
* <p>
* 充电订单扣费明细
* </p>
* @author yuzhou
* @since 2024-06-179 15:00:10
*/
@Data
@Accessors(chain = true)
@TableName("wo_order_cash_detail")
@ApiModel(value = "WoOrderCashDetail对象", description = "充电订单扣费明细")
public class WoOrderCashDetail implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("充电订单Id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty("充电订单金额")
    @TableField("order_amount")
    private BigDecimal orderAmount;

    @ApiModelProperty("充值订单Id")
    @TableField("pay_order_id")
    private Long payOrderId;

    @ApiModelProperty("充值订单金额")
    @TableField("pay_order_amount")
    private BigDecimal payOrderAmount;

    @ApiModelProperty("使用金额")
    @TableField("use_amount")
    private BigDecimal useAmount;

    @ApiModelProperty("充值支付流水")
    @TableField("pay_transaction_no")
    private String payTransactionNo;

    @ApiModelProperty("充值时间")
    @TableField("pay_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date payTime;

    @ApiModelProperty("退款订单Id")
    @TableField("refund_order_id")
    private Long refundOrderId;

    @ApiModelProperty("退款金额")
    @TableField("refund_order_amount")
    private BigDecimal refundOrderAmount;

    @ApiModelProperty("退款付款编号")
    @TableField("refund_transaction_no")
    private String refundTransactionNo;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

}
